﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ZX.TR.Library;
using ZX.BLL.Extend;
using ZX.DBModule;
using System.IO;
using ZX.Common;
namespace ZX.TR.Bussiness
{
    public partial class BTrCourse : BLL.Extend.BaseBussnies
    {      
        /// <summary>
        /// 构造函数
        /// </summary>
        public BTrCourse()
        {
            this.entity = new TrCourse();
        }

        /// <summary>
        /// 判断课程名不能重复
        /// </summary>
        /// <param name="CourseName">课程名</param>
        /// <returns></returns>
        public bool GetTrCourseNameByCourseName(string CourseName)
        {
            return this.GetEntityByCondition("CourseName='" +CSVHelper.FmSQL(CourseName) + "'") != null;
        }
    }
}
